package com.sojson.util.pay.wx.bean;

import java.util.List;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.sojson.config.exception.TransErrorCode;
import com.sojson.config.exception.bean.Status;
import com.sojson.util.pay.wx.bean.child.response.WxQyResTemplateContent;
import com.sojson.util.pay.wx.bean.child.response.WxQyResTemplateNames;

import lombok.Data;

/**
 * 企业微信审批接口响应Bean
 * 
 * @author liu
 * @date 2021-03-16
 */
@Data
public class WxQyApplyeventResponse extends WxBaseResponse {

    /***/
    private static final long serialVersionUID = -444894164284969796L;

    /** 模板名称，若配置了多语言则会包含中英文的模板名称，默认为zh_CN中文 */
    @JsonProperty("template_names")
    @JSONField(name = "template_names")
    private List<WxQyResTemplateNames> templateNames;
    /** 模板控件信息 */
    @JsonProperty("template_content")
    @JSONField(name = "template_content")
    private WxQyResTemplateContent templateContent;

    public WxQyApplyeventResponse() {
        super();
    }

    /**
     * 成功返回
     * 
     * @param code
     */
    public WxQyApplyeventResponse(Integer code) {
        super(code);
    }

    /**
     * 返回失败
     * 
     * @param code
     * @param msg
     */
    public WxQyApplyeventResponse(Integer code, String msg) {
        super(code, msg);
    }

    /**
     * 返回失败
     * 
     * @param transErrorCode
     */
    public WxQyApplyeventResponse(TransErrorCode transErrorCode) {
        super(transErrorCode);
    }

    public WxQyApplyeventResponse(Status status) {
        super(status);
    }

}